package com.www.bigevent.service.impl;

import com.www.bigevent.mapper.Usermapper;
import com.www.bigevent.pojo.User;
import com.www.bigevent.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private Usermapper usermapper;

    @Override
    public User findByusername(String username) {
        User u= usermapper.selectByusername(username);
        return u;
    }

    @Override
    public void register(String username, String password) {
        usermapper.add(username,password);
    }
}
